#pragma once
#include "GameObject.h"
#ifndef ANIMAL_H
#define ANIMAL_H

class Animal : public GameObject
{
	
protected:
	bool m_isAlive;
	bool m_isMoveLeft;
public:
	int frame = 0;
public:
	Animal(SDL_Surface * img, Point pos);
	virtual ~Animal();
	virtual void Update();
	bool isSinh()
	{
		if (frame >= 150)
		{
			frame = 0;
			return true;
		}

		return false;
	}
	Point getPos();
	bool isAlive()
	{
		return m_isAlive;
	}
};
#endif